<?php if (count($results) > 0) { ?>
    <div class="tabs_content_area">
        <div class="tab_content" id="tab_1">
            <table cellspacing="0" cellpadding="0" class="assign_table">
                <thead>
                    <tr>
                        <th>البرنامج</th>
                        <th>تاريخ بداية البرنامج</th>
                        <th>نوع البرنامج</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($results as $one) { ?>
                        <tr class="row_status_2">
                            <td><?php echo $one['name'] ?><br/>[<a href="javascript:void(0)" onclick="window.open('<?php echo url_for('program/card?id='.$one['id'])?>', 'programWindow', 'width=600,height=600,scrollbars=true')"><?php echo __('Program card') ?></a>]</td>
                            <td><?php echo $one['start_date'] ?></td>
                            <td>
                               <?php switch($one['kind']){
                                   
                                   case 'day':
                                       echo __('morning_program');
                                       break;
                                   case 'night':
                                       echo __('night_program');
                                       break;
                                   case 'long':
                                       echo __('long_term_application');
                                       break;
                                   
                               } ?>
                            </td>
                        </tr>
                    <?php } ?>
                </tbody>
            </table>      
        </div>
        <div class="clear"></div>    
    </div>
<?php } else { ?>
    <br/>
    <center>لم يتم العثور على نتائج</center>
    <br/>
    <br/>
<?php } ?>

